package com.usian.controller;

import com.usian.article.ApArticleConfigControllerApi;
import com.usian.article.ApArticleControllerApi;
import com.usian.model.article.pojos.ApArticle;
import com.usian.model.article.pojos.ApArticleConfig;
import com.usian.service.ApArticleConfigService;
import com.usian.service.ApArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/articleConfig")
public class ApArticleConfigController implements ApArticleConfigControllerApi {

    @Autowired
    private ApArticleConfigService apArticleConfigService;


    @PostMapping("/save")
    @Override
    public ApArticleConfig saveApArticleConfig(@RequestBody ApArticleConfig articleConfig) {
        return apArticleConfigService.saveApArticleConfig(articleConfig);
    }
}
